package com.atguigu.gulimall.product.feign;

import com.atguigu.gulimall.common.to.es.SkuEsModel;
import com.atguigu.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author majinhui
 * @description
 * @create 2024/7/31 10:53
 **/
@FeignClient("gulimall-search")
public interface SearchFeignClient {

    @PostMapping("/search/save/product")
    R<List<SkuEsModel>> productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
